package com.naiterui.ehp.bs.pc.modules.user.controller.inner;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.naiterui.ehp.bp.security.utils.SecurityUtils;
import com.naiterui.ehp.bp.support.exception.PublicService;
import com.naiterui.ehp.bp.support.exception.ResponseVO;

import lombok.extern.slf4j.Slf4j;

/**
 * <pre>
 *
 * </pre>
 *
 * @author fangguanhong
 * @date 2021/3/2 下午7:10
 * @since 1.0.0
 */
@Slf4j
@RestController
@RequestMapping("pc/inner/user")
public class InnerUserController {

    @GetMapping("/id")
    public ResponseVO<Long> userid() {
        log.info("获取当前登录用户ID！！");
        return PublicService.returnResponseVO(SecurityUtils.getCurrentUser().getId());
    }
}
